package com.comprental.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;

/**
 * @Author: zhangjun
 * @Date: 2020/8/19 14:23
 * @Description:
 */
@Data
public class BaseEntity<T extends BaseEntity> {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Integer createBy;
    private Date createDate;//创建时间
    private Integer updateBy;
    private Date updateDate;//更新时间
    @TableLogic
    private String delFlag;
}
